import React, { Component } from 'react'

export class Recommad extends Component {
    shouldComponentUpdate(nextProps) {
        if(this.props.counter !== nextProps.counter){
            return true
        }
        return false
    }
    render() {
        console.log('Recommad render');

        return (
            <div>
                Recommad
                <p>{this.props.counter}</p>
            </div>
        )
    }
}

export default Recommad